package com.letfox.frm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.letfox.frm.dao.FRMFileDao;
import com.letfox.frm.model.FRMFile;
import com.letfox.frm.service.FRMFileService;

@Service
public class FRMFileServiceImpl implements FRMFileService {

	@Autowired
	private FRMFileDao fileDao;
	
	@Override
	public int save(FRMFile fFrmFile) {
		return fileDao.insert(fFrmFile);
	}

	@Override
	public int update(FRMFile fFrmFile) {
		return fileDao.update(fFrmFile);
	}

	@Override
	public int deleteById(Long id) {
		return fileDao.deleteById(id);
	}

}
